//
//  TestModel.m
//  TableView 封装
//
//  Created by Kevin on 17/11/1.
//  Copyright © 2017年 JOWO.team. All rights reserved.
//

#import "TestModel.h"

@implementation TestModel

+ (void)getModelRequestSuccess:(void(^)(NSMutableArray <TestModel *>*array))success{
    
    NSMutableArray *array = [NSMutableArray array];
    
    for (int i = 0; i < 20; i++) {
    TestModel *model   = [TestModel new];
//    NSInteger num      = arc4random_uniform(100);
    model.title        = [NSString stringWithFormat:@"我是%d",i];
    [array addObject:model];
    }
    
    // 将请求成功 的数据直接回调回控制器
    success(array);
}

@end
